//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveProductItem implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Integer state;

    @TableField(value = "item_title", condition = SqlCondition.LIKE)
    private String itemTitle;
    @TableField(value = "item_content", condition = SqlCondition.LIKE)
    private String itemContent;
    private Integer orders;
    private Long productId;

    public LiveProductItem() {
    }

    public Long getId() {
        return this.id;
    }

    public Integer getState() {
        return this.state;
    }

    public String getItemTitle() {
        return this.itemTitle;
    }

    public String getItemContent() {
        return this.itemContent;
    }

    public Integer getOrders() {
        return this.orders;
    }

    public Long getProductId() {
        return this.productId;
    }

    public LiveProductItem setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveProductItem setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LiveProductItem setItemTitle(final String itemTitle) {
        this.itemTitle = itemTitle;
        return this;
    }

    public LiveProductItem setItemContent(final String itemContent) {
        this.itemContent = itemContent;
        return this;
    }

    public LiveProductItem setOrders(final Integer orders) {
        this.orders = orders;
        return this;
    }

    public LiveProductItem setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public String toString() {
        return "LiveProductItem(id=" + this.getId() + ", state=" + this.getState() + ", itemTitle=" + this.getItemTitle() + ", itemContent=" + this.getItemContent() + ", orders=" + this.getOrders() + ", productId=" + this.getProductId() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveProductItem)) {
            return false;
        } else {
            LiveProductItem other = (LiveProductItem)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                Object this$itemTitle = this.getItemTitle();
                Object other$itemTitle = other.getItemTitle();
                if (this$itemTitle == null) {
                    if (other$itemTitle != null) {
                        return false;
                    }
                } else if (!this$itemTitle.equals(other$itemTitle)) {
                    return false;
                }

                label62: {
                    Object this$itemContent = this.getItemContent();
                    Object other$itemContent = other.getItemContent();
                    if (this$itemContent == null) {
                        if (other$itemContent == null) {
                            break label62;
                        }
                    } else if (this$itemContent.equals(other$itemContent)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$orders = this.getOrders();
                    Object other$orders = other.getOrders();
                    if (this$orders == null) {
                        if (other$orders == null) {
                            break label55;
                        }
                    } else if (this$orders.equals(other$orders)) {
                        break label55;
                    }

                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveProductItem;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $itemTitle = this.getItemTitle();
        result1 = result * 59 + ($itemTitle == null ? 43 : $itemTitle.hashCode());
        Object $itemContent = this.getItemContent();
        result1 = result * 59 + ($itemContent == null ? 43 : $itemContent.hashCode());
        Object $orders = this.getOrders();
        result1 = result * 59 + ($orders == null ? 43 : $orders.hashCode());
        Object $productId = this.getProductId();
        result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        return result1;
    }
}
